<?php

namespace app\common\dao\bill;

use app\common\dao\BaseDao;
use app\common\model\bill\BillBasicModel;

class BillPictureDao extends BaseDao
{

    /**
     * @return BillBasicModel
     */
    protected function getModel(): string
    {
        return BillBasicModel::class;
    }

    public function removePicture(int $courseId)
    {
        return $this->getSearch([
            'course_id' => $courseId,
        ])->delete();
    }

}
